<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>登录</title>
</head>
<body>
<%
  if (session.getAttribute("LoginedUserName") != null){
    out.print("您已经登录了！<br/> <a href='index.jsp' />主页</a>");
    return;
  }
%>
<%@include file="header.jsp" %>
学生登陆
<center>
    <%=(request.getAttribute("msg")==null?"":"<div id=msg style="+"color:red;"+" >"+request.getAttribute("msg")+"</div>")%>
  <form name=LoginForm action="login.jsp" method="post">
    <table border="0" width="100%">
      <tr>
        <td width="47%" align="right">学号</td>
        <td><input type=text name=UserName></td>
      </tr>
      <tr>
        <td align="right">密码</td>
        <td><input type=password name=PassWord></td>
      </tr>
      <tr>
        <td colspan="2" align="center">
          <input type="submit" value="登录">
          <input type="reset" value="重置"><br>
          <a href="RegisterUserForm.jsp">学生注册</a><br>
          <a href="ManageForm.jsp">管理员登录</a>
        </td>
      </tr>

    </table>
  </form>
  <center>
    <%@include file="footer.jsp" %>
</body>
</html>

